package org.jeecg.modules.rental.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description: 紧急求助
 * @Author: sean
 * @Date:   2024-07-25
 * @Version: V1.0
 */
@Data
@TableName("rental_urgent_assist")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="rental_urgent_assist对象", description="紧急求助")
public class RentalUrgentAssist implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
	/**账户套餐id*/
	@Excel(name = "账户套餐id", width = 15)
    @ApiModelProperty(value = "账户套餐id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long accountPackageId;
	/**车辆id*/
	@Excel(name = "车辆id", width = 15)
    @ApiModelProperty(value = "车辆id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long carId;
	/**维度*/
	@Excel(name = "维度", width = 15)
    @ApiModelProperty(value = "维度")
    private String latitude;
	/**经度*/
	@Excel(name = "经度", width = 15)
    @ApiModelProperty(value = "经度")
    private String longitude;
	/**情况描述*/
	@Excel(name = "情况描述", width = 15)
    @ApiModelProperty(value = "情况描述")
    private String assistDesc;
	/**处理状态 0-待处理 1-处理中 2-已解决 3-已关闭*/
	@Excel(name = "处理状态 0-待处理 1-处理中 2-已解决 3-已关闭", width = 15)
    @ApiModelProperty(value = "处理状态 0-待处理 1-处理中 2-已解决 3-已关闭")
    private String handleStatus;
	/**风险处理人*/
	@Excel(name = "风险处理人", width = 15)
    @ApiModelProperty(value = "风险处理人")
    private String faultHandler;
	/**解决时间*/
	@Excel(name = "解决时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "解决时间")
    private LocalDateTime resolvedDate;
	/**报告时间*/
	@Excel(name = "报告时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "报告时间")
    private LocalDateTime reportedDate;
	/**归属运营商*/
    @ApiModelProperty(value = "归属运营商")
    private String sysOrgCode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
	/**是否删除（0：否、1：是）*/
	@Excel(name = "是否删除（0：否、1：是）", width = 15)
    @ApiModelProperty(value = "是否删除（0：否、1：是）")
    @TableLogic(value="0", delval = "1")
    private String isDelete;
}
